import 'package:furaha_mkopo/net/fm_http_model.dart';

class FMIdentityAuthenticationEntity extends FMHttpModel {

  String? hurrah;
  FMIdentityAuthenticationVoiceEntity? voice;
  FMIdentityAuthenticationEntity({this.hurrah,this.voice});
  @override
  FMIdentityAuthenticationEntity fromJson(Map<String, dynamic> json) {
    return FMIdentityAuthenticationEntity(
      hurrah: json['hurrah'],
      voice:
          json['voice'] != null ? FMIdentityAuthenticationVoiceEntity.fromJson(json['voice']) : null,
    );
  }
}

class FMIdentityAuthenticationVoiceEntity {
  String? refused;
  String? furious;
  String? indeed;
  String? gloomy;
  String? silently;
  String? embraced;
  int? display_other;
  String? card_type;

  FMIdentityAuthenticationVoiceEntity(
      {this.refused,
      this.furious,
      this.embraced,
      this.gloomy,
      this.indeed,
      this.silently,
      this.display_other,
      this.card_type});

  factory FMIdentityAuthenticationVoiceEntity.fromJson(Map<String, dynamic> json){
    return FMIdentityAuthenticationVoiceEntity(
      refused: json['refused'],
      furious: json['furious'],
      embraced: json['embraced'],
      gloomy: json['gloomy'],
      indeed: json['indeed'],
      silently: json['silently'],
      display_other: json['display_other'],
      card_type: json['card_type'],
    );
  }
}

class FMAuthImageResultEntity extends FMHttpModel {
  String? planned;
  String? succeed;
  String? meet;
  String? courtyard;
  String? bidding;
  String? notwithstanding;
  String? assurance;
  String? passed;
  String? harder;
  String? stone;
  List<FMAuthImagePortLandEntity>? portland;

  FMAuthImageResultEntity(
      {this.planned,
      this.succeed,
      this.meet,
      this.courtyard,
      this.bidding,
      this.notwithstanding,
      this.assurance,
      this.passed,
      this.harder,
      this.stone,
      this.portland});

  @override
  FMAuthImageResultEntity fromJson(Map<String, dynamic> json) {
    return FMAuthImageResultEntity(
      planned: json['planned'],
      succeed: json['succeed'],
      meet: json['meet'],
      courtyard: json['courtyard'],
      bidding: json['bidding'],
      notwithstanding: json['notwithstanding'],
      assurance: json['assurance'],
      passed: json['passed'],
      harder: json['harder'],
      stone: json['stone'],
      portland: json['portland'] != null
          ? (json['portland'] as List)
              .map((i) => FMAuthImagePortLandEntity.fromJson(i))
              .toList()
          : null,
    );
  }
}

class FMAuthImagePortLandEntity {
  String? harder;
  String? hearts;
  String? cheers;

  FMAuthImagePortLandEntity({this.harder, this.hearts, this.cheers});

  factory FMAuthImagePortLandEntity.fromJson(Map<String, dynamic> json) {
    return FMAuthImagePortLandEntity(
      harder: json['harder'],
      hearts: json['hearts'],
      cheers: json['cheers'],
    );
  }
}
